Posted by 밤치
Posted by 밤치
<table align="center" width="500" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="position: relative;">
<div style="position:absolute; left: 100px; top: 100px; width:300px; height:300px; background-color:#ccc;">
내용
</div>
</div>
<br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</td>
</tr>
</table>
Posted by 밤치




Posted by 밤치
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Window;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.geom.RoundRectangle2D;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JProgressBar;
import javax.swing.JRadioButton;
import javax.swing.SwingUtilities;
public class ShapedWindow extends JFrame implements ComponentListener {
private static final long serialVersionUID = 1L;
private static RoundRectangle2D.Double shape;
private static Window w;
public ShapedWindow() {
super("Test oval-shaped window");
this.setLayout(new FlowLayout());
this.add(new JButton("test"));
this.add(new JCheckBox("test"));
this.add(new JRadioButton("test"));
this.add(new JProgressBar(0, 100));
this.setSize(new Dimension(400, 300));
this.setLocationRelativeTo(null);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.addComponentListener(this);
}
public static void main(String[] args) {
JFrame.setDefaultLookAndFeelDecorated(true);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
w = new ShapedWindow();
w.setVisible(true);
shape = new RoundRectangle2D.Double(0, 0, w.getWidth(), w.getHeight(), 20, 20);
com.sun.awt.AWTUtilities.setWindowShape(w, shape);
}
});
}
@Override
public void componentResized(ComponentEvent e) {
shape.width = w.getWidth();
shape.height = w.getHeight();
com.sun.awt.AWTUtilities.setWindowShape(w, shape);
}
@Override
public void componentHidden(ComponentEvent e) {
}
@Override
public void componentMoved(ComponentEvent e) {
}
@Override
public void componentShown(ComponentEvent e) {
}
}

Posted by 밤치
<form>
<ul>
<fieldset>
<legend>Person info</legend>
<ul>
<li>
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
</li>
<li>
<label for="age">Age:</label>
<input type="text" name="age" id="age" />
</li>
</ul>
</fieldset>
<fieldset>
<legend>Address info</legend>
<ul>
<li>
<label for="address">Address:</label>
<input type="text" name="address" id="address" />
</li>
<li>
<label for="zip">Zip:</label>
<input type="text" name="zip" id="zip" />
</li>
</ul>
</fieldset>
</ul>
</form>

Posted by 밤치
Object[] obj = node.evaluateXPath("//body/div[3]/div[4]/div/div[11]/div/ul/li");
Posted by 밤치



import java.awt.Color;
import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
public class BCRoundTabPanel extends JPanel {
private static final long serialVersionUID = 1L;
int y;
int r;
int hr;
int iconWidth;
int iconHeight;
Color c;
ImageIcon topImg;
public BCRoundTabPanel(ImageIcon imgIcon, int r) {
this.topImg = imgIcon;
this.r = r;
hr = r / 2;
y = topImg.getIconHeight();
iconWidth = topImg.getIconWidth();
iconHeight = topImg.getIconHeight();
}
@Override
public void paint(Graphics g) {
super.paintComponents(g);
g.setColor(c);
g.drawArc(0, getHeight() - r - 1, r, r, 180, 90);
g.drawArc(getWidth() - r - 1, getHeight() - r - 1, r, r, 270, 90);
g.drawArc(getWidth() - r - 1, iconHeight, r, r, 0, 90);
g.drawLine(iconWidth, iconHeight, getWidth() - hr, iconHeight);
g.drawLine(0, 0, 0, getHeight() - hr);
g.drawLine(getWidth() - 1, iconHeight + hr, getWidth() - 1, getHeight() - hr - 1);
g.drawLine(hr, getHeight() - 1, getWidth() - hr, getHeight() - 1);
g.drawImage(topImg.getImage(), 0, 0, iconWidth, iconHeight, null);
}
public Color getC() {
return c;
}
public void setC(Color c) {
this.c = c;
}
}
Posted by 밤치



Posted by 밤치
.reg 파일로 저장하고 탐색기에서 우클릭하면 Delete SVN Folders 메뉴가 생성된다.Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""
Posted by 밤치
Posted by 밤치
- 밤치
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |